package net.lcheng.manage.vo;

import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.math.BigDecimal;

/**
 * Created by qiliping on 15/12/4.
 */
public class NetValueAddModel {
    @NotNull(message = "净值不能为空")
    private BigDecimal netvalue;

    @NotEmpty
    private String productId;

    @Pattern(regexp = "^[0-9]{4}-(((0[13578]|(10|12))-(0[1-9]|[1-2][0-9]|3[0-1]))|(02-(0[1-9]|[1-2][0-9]))|((0[469]|11)-(0[1-9]|[1-2][0-9]|30)))$",message = "日期格式不正确")
    private String clacDate;

    public String getClacDate() {
        return clacDate;
    }

    public void setClacDate(String clacDate) {
        this.clacDate = clacDate;
    }

    public BigDecimal getNetvalue() {
        return netvalue;
    }

    public void setNetvalue(BigDecimal netvalue) {
        this.netvalue = netvalue;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }
}
